package com.nbjtjc.safe.mapper.emg;

import com.nbjtjc.safe.model.emg.EmgType;
import com.nbjtjc.util.MyMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface EmgTypeMapper extends MyMapper<EmgType> {

    List<EmgType> search(@Param("type") EmgType emgType);

    List<EmgType> searchWithPlan(@Param("type") EmgType emgType);

    @Select("select type_name from emg_type where id=#{typeId}")
    String selectTypeNameById(@Param("typeId") int typeId);

}